﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using VietPay.KooBoo.Business.Interfaces;
using VietPay.KooBoo.Business;
using VietPay.KooBoo.Business.Models;

namespace Kooboo.CMS.Modules.Areas.NewsModule.Controllers
{
    public class StockBalanceController : Controller
    {
        private IStockBalanceService _StockBalanceService;

        public StockBalanceController()
            : this(new StockBalanceService())
        {

        }

        public StockBalanceController(IStockBalanceService batchService)
        {
            _StockBalanceService = batchService;
        }

        //
        // GET: /NewsModule/News/
        public ActionResult Index(int distributorID=-1)
        {
            distributorID = 3;
            StockBalanceListViewModel nlst = _StockBalanceService.GetStockBalanceProductList(distributorID, 10, 10);
            if (nlst == null)
            {
                return HttpNotFound();
            }
            return View(nlst);
            //return View();
        }
    }
}
